package org.xdq.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.xdq.demo.dao.DepDao;
import org.xdq.demo.model.Dep;
import org.xdq.demo.util.MyUtils;

import java.util.List;

@Service //该注解等同于 @Component ,并声明为业务类对象
@Transactional
public class DepServiceImpl implements org.xdq.demo.service.DepService {

    @Autowired
    private DepDao depDao;
    @Override
    public List<Dep> getAllEnableDepList(){
        return depDao.findAllEnableDepList();
    }

}
